<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
</head>
<link href="${ctx}/css/main/base.css" rel="stylesheet" type="text/css"/>
<link href="${ctx}/css/main/main.css" rel="stylesheet" type="text/css"/>
<body class="m_r">
<form action="user_modify.action" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab_m left">
  <tr>
    <td colspan="2" class="zctop left"><span class="font14 zc_bt">我的帐户</span></td>
  </tr>
  <tr>
    <td colspan="2" class="bg1 font14">登录别名设置</td>
  </tr>
  <tr>
    <td class="bg5 right">别名：</td>
    <td><input name="user.userAlias" value="${user.userAlias}" class="fl_l"/><div id="errAlias"></div></td>
  </tr>
  <tr>
    <td colspan="2" class="bg1 font14">用户角色与管理范围</td>
  </tr>
  <tr>
    <td class="bg5 right">主角色：</td>
    <td>${mainRoleName}</td>
  </tr>
  <tr>
    <td class="bg5 right">辅助角色：</td>
    <td>${otherRoleName}</td>
  </tr>
  <tr>
  <input type="hidden" name="user.userId" value="${user.userId}"/>
  <input type="hidden" name="user.userLogin" value="${user.userLogin}"/>
  <input type="hidden" name="user.userName" value="${user.userName}"/>
  <input type="hidden" name="user.userCard" value="${user.userCard}"/>
  <input type="hidden" name="user.userSex" value="${user.userSex}"/>
  <input type="hidden" name="user.userPwd" value="${user.userPwd}"/>
  <input type="hidden" name="user.userOrder" value="${user.userOrder}"/>
  <input type="hidden" name="user.userSpell" value="${user.userSpell}"/>
  <input type="hidden" name="user.roleId" value="${user.roleId}"/>
  <input type="hidden" name="user.roleIdOther" value="${user.roleIdOther}"/>
  <input type="hidden" name="user.deptId" value="${user.deptId}"/>
  <input type="hidden" name="user.deptIdOther" value="${user.deptIdOther}"/>
  <input type="hidden" name="user.userFlag" value="${user.userFlag}"/>
  <input type="hidden" name="user.userMemo" value="${user.userMemo}"/>
  <input type="hidden" name="user.userBirthday" value="${user.userBirthday}"/>
  <input type="hidden" name="user.userPhone" value="${user.userPhone}"/>
  <input type="hidden" name="user.userEmail" value="${user.userEmail}"/>
    <td colspan="2" class="hei_1 center"><input type="button" onclick="modifyAccount();" value="保存修改" class="log_f zc_b"></td>
  </tr>
</table>
</form>
</body>
</html>
<script type="text/javascript" src="${ctx}/scripts/commons/jquery-1.2.3.pack.js"></script>
<script type="text/javascript" src="${ctx}/scripts/commons/validation.js"></script>
<script type="text/javascript">
<!--

function modifyAccount(){
	var userAlias = document.getElementById("user.userAlias").value;
	if(userAlias.length > 20){
		document.getElementById("errAlias").innerHTML = "<font color='red'> 别名长度不能大于20!</font>";
		return false;
	}
document.forms[0].submit();
}
//-->
</script>